package com.hrzyit.whistle.comm.injection.component

import com.hrzyit.base.injection.PreComponentScope
import com.hrzyit.base.injection.component.ActivityComponent
import com.hrzyit.whistle.comm.injection.module.ContactCenterModule
import com.hrzyit.whistle.comm.ui.fragment.ContactsFragment
import com.hrzyit.whistle.comm.ui.fragment.DepartmentFragment
import com.hrzyit.whistle.comm.ui.fragment.UserInfoFragment
import dagger.Component

/**
 *
 * 案件管理服务模块 Component，用来管理模块下使用 Dagger2 依赖注入的Activity、Fragment
 * @author YangWei
 * @date 2019/5/6
 */
@PreComponentScope
@Component(
    dependencies = [ActivityComponent::class],
    modules = [ContactCenterModule::class]
)
interface ContactCenterComponent {

    /**
     * 依赖注入: 联络人界面
     */
    fun inject(fragment: ContactsFragment)

    /**
     * 依赖注入: 联络单位界面
     */
    fun inject(fragment: DepartmentFragment)

    /**
     * 依赖注入：联络人详细信息界面
     */
    fun inject(fragment: UserInfoFragment)
}